package top.v5it.japi.plus.example.jdbc.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;
import top.v5it.japi.plus.extra.entity.Entity;

import java.time.LocalDateTime;

/**
 * @author zhanpu
 * @date 2022/8/4
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Table("tb_account")
public class Account extends Entity<Long> {
    private static final long serialVersionUID = 3240529988008004082L;

    @Id
    @Column("sys_id")
    private Long id;
    private String name;
    private Long amount;
    @Column("account_number")
    private String accountNumber;
    @CreatedDate
    @Column("created_time")
    private LocalDateTime createdTime;
    @LastModifiedDate
    @Column("updated_time")
    private LocalDateTime updatedTime;
    @Column("account_password")
    private String accountPassword;
    private String tel;
    private Byte status;
    private String remark;
}
